package com.qianda.qdminiapp.common.exception;

public class PayServiceException extends RuntimeException{
    /**
     *
     */
    private static final long serialVersionUID = 1021603121496091269L;

    private int errorCode;

    private String errorMsg;

    public PayServiceException(String errorMsg) {
        super(errorMsg);
        this.errorMsg = errorMsg;
    }

    public PayServiceException(String errorMsg, Throwable t) {
        super(errorMsg, t);
        this.errorMsg = errorMsg;
    }

    public PayServiceException(int errorCode, String errorMsg) {
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public PayServiceException(int errorCode, String errorMsg, Throwable t) {
        super(errorMsg, t);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
